/**  
 * All rights Reserved, Designed By <a href="www.itttq.com" target="_blank">www.itttq.com</a>
 * @date:   2018-01-6 11:42:21
 * @Copyright: 2017 <a href="www.itttq.com" target="_blank">www.itttq.com</a> Inc. All rights reserved. 
 */
package com.itttq.gshop.pc.controller.order;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.itttq.gshop.generic.controller.GenericController;
import com.itttq.gshop.domain.po.OrderOpLogsPo;
import com.itttq.gshop.generic.connector.IOrderOpLogsConnector;

@RestController
@RequestMapping("order/opLogs")
public class OrderOpLogController extends GenericController {
	private static final long serialVersionUID = 456162097789751748L;
	@Autowired
	private IOrderOpLogsConnector orderOpLogsConnector;
	
	/**
	 * 根据订单ID查询订单状态变化信息
	 * 
	 * @param orderId	订单ID
	 * @Author 迷蝶
	 * @return List<OrderOpLogsPo>
	 */
	@RequestMapping("opLogsByOrderId.html")
	public List<OrderOpLogsPo> getOrderOpLogsByOrderId(int orderId) {
		return orderOpLogsConnector.getOrderOpLogsByOrderId(orderId);
	}
}